<?php

#[('__toString', '给类增加一个说明')]
class User
{
    public function start()
    {
        echo "my name is hflxhn <br>";
    }

    public function __toString()
    {
        return "这是一个用户类！";
    }
}

$obj = new User();
echo $obj;
